<template>
  <div>
    <el-form ref="Bigform" :model="Bigform" label-width="110px">
      <el-form-item label="类目名称">
        <el-input v-model="Bigform.name"></el-input>
      </el-form-item>
      <el-form-item label="选择权限战队">
        <el-select v-model="Bigform.region" placeholder="请选择活动区域" style="width: 100%">
          <el-option label="区域一" value="shanghai"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmitBigForm">提交</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
    <el-form ref="Smallform" :model="Smallform" label-width="110px">
      <el-form-item label="线类型" >
        <el-select v-model="Smallform.value1" placeholder="请选择" style="width: 100%;" @change="changeLine">
          <el-option label="大线" value="1"></el-option>
          <el-option label="小线" value="2"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="开线时间">
        <el-date-picker v-model="value1" type="date" style="width: 100%" placeholder="选择日期时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="结束时间" v-if="Smallform.value1==2">
        <el-date-picker v-model="value1" type="date" style="width: 100%" placeholder="选择日期时间" >
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmitBigForm">提交</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  data() {
    return {
      Bigform: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
      Smallform: {
        value1:'',
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      }
    };
  },
  methods: {
    onSubmitBigForm() {
      console.log("submit!");
    },
  },
};
</script>
<style lang="scss" scoped></style>
